import jdReminder from '@jmfe/jm-jdreminder'

// 检查状态
export function checkCalendar({ type, time, id }) {
	const options = {
		type,
		time,
		id,
	}
	return jdReminder.checkStatus(options)
}

// 增加预约
export function bookCalendar({ type, title, time, url, imgUrl, id, tag }) {
	const options = {
		type,
		title,
		time,
		url,
		imgUrl,
		id,
		tag,
	}
	return jdReminder.add(options)
}

// 取消预约
export function removeCalendar({ type, time, id }) {
	const options = {
		type,
		time,
		id,
	}
	return jdReminder.delete(options)
}
